#include<bits/stdc++.h>
using namespace std;
#define int long long

int cnt[10];

signed main() {
	int n, m;
	cin >> n >> m;
	for (int i = n; i <= m; i++) {
		int x = i;
		while (x) {
			cnt[x % 10]++;
			x /= 10;
		}
	}
	for (int i : cnt)
		cout << i << " ";
	return 0;
}
